package com.yuantu.judiciary.model.vo;

import com.yuantu.judiciary.model.dto.EntBreakLawDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

/**
 * 企业严重违法
 *
 * @author syw
 * @since 2023-07-19
 **/
@Data
@ApiModel("企业严重违法")
@Builder
public class EntBreakLawVO {
    @ApiModelProperty("列入原因") private String inreason;
    @ApiModelProperty("列入日期") private String indate;
    @ApiModelProperty("移出原因") private String outreason;
    @ApiModelProperty("移出日期") private String outdate;
    @ApiModelProperty("列入作出决定机关") private String inregorg;
    @ApiModelProperty("移出作出决定机关") private String outregorg;

    public static EntBreakLawVO getEntBreakLaw(EntBreakLawDTO data) {
        return EntBreakLawVO.builder()
                .inreason(data.getINREASON())
                .indate(data.getINDATE())
                .outreason(data.getOUTREASON())
                .outdate(data.getOUTDATE())
                .inregorg(data.getINREGORG())
                .outregorg(data.getOUTREGORG())
                .build();
    }

}
